package com.hyw.encryption.exception;

import java.util.Objects;

public class IllegalEncryptionException extends RuntimeException {

  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  /**
   * 用于额外处理用户标记异常
   */
  private String userId;

  public IllegalEncryptionException() {
    super();
  }

  public IllegalEncryptionException(String userId) {
    super();
    Objects.requireNonNull(userId, "该构造方法userId不允许为空");
    this.userId = userId;
  }

  public String getUserId() {
    return userId;
  }

}
